当球打掉一个砖块时,让我们加一分。
- 在第二个 if 语句中,删除 .say() 指令。使用 Add Value 向 score 加 1 分。
- 使用 Update Variable 将新的 score 更新到 score_board。
- 添加 Random Choice。将其命名为 y_speed。创建如 [-4, -3, -2]的负数列表。
- 使用 Remove Sprite 操作使 block 消失。你刚刚设置了游戏的逻辑!
To navigate the page using the TAB key, first press ESC to exit the code editor.